from sqlalchemy import Column, Integer, String

from app.models.base import BaseModel


class Region(BaseModel):
    __tablename__ = "region"
    __table_args__ = {"comment": "省市区"}

    id = Column(Integer, primary_key=True, autoincrement=True, comment="购物车id")
    pid = Column(Integer, comment="父id")
    name = Column(String(16), comment="名称")
    level = Column(Integer, comment="层级")
